﻿using UnityEngine;
using System.Collections;
using XLua;
public class test : MonoBehaviour {

	// Use this for initialization

    LuaEnv luaenv;
	void Start () {
        luaenv = new LuaEnv();
        luaenv.AddBuildin("rapidjson", XLua.LuaDLL.Lua.LoadRapidJson);
        luaenv.DoString("require 'main'");   
	}
    void OnDestroy()
    {
        luaenv.Dispose();
    }
}
